home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / all java / quicktime for java / dukemovie / readme.txt < prev   
Encoding:
Text File  |  2000-06-23  |  2.6 KB  |  51 lines

  1. =============================================================================
  2. QuickTime for Java SDK                              Updated: 30 November 1998
  3.  
  4. Read Me Notes to "Duke Movie" Demo and Sample Code
  5.  
  6. =============================================================================
  7. This demo program shows how to display any QuickTime content within a java.awt display space using the QTCanvas. It also demonstrates the use of the different resize options of the QTCanvas (with the QTCanvas' alignment set to centre it in the display space).
  8.  
  9. =============================================================================
  10. The minimum runtime requirements for this Sample Code are:
  11.  
  12. - Common
  13.     - Sun Compliant Java Runtime Environment 1.1
  14.     - QuickTime 3 
  15.     - QTJava.zip
  16.  
  17. - MacOS:
  18.     - System 8 or later
  19.     - Macintosh Runtime for Java (MRJ) 2.1
  20.  
  21. - Windows 95, 98, or NT::
  22.     - JRE/JDK from Sun Microsystems, Inc. recommended
  23.  
  24. =============================================================================
  25. Media requirements for this Sample Code are found in the media directory of the QTJava SDK:
  26.  
  27. (1) Tx.gif in the duke directory (where X is a number indicative of a frame order)
  28. (2) QuickTime media files of the user's choice
  29.  
  30. =============================================================================
  31. Notes & Comments
  32.  
  33. The duke animation at the top of the window is from the Duke animation sample applet.
  34.  
  35. The user selects any QuickTime media - the file is displayed using the QTFactory.makeDrawable method. The user can apply the various resize options of the QTCanvas. The x and y alignment values of the QTCanvas are programmtically set at 0.5F - which centres the QTCanvas within the area that Java's layout managers allocate to the QTCanvas. The actual control of the canvas' size can be seen by setting the resize options to 'allow any size'.
  36.  
  37. =============================================================================
  38. General Comments
  39.  
  40. - QTSession.open and close:
  41.  
  42. A QTSession.open will perform a gestalt check to ensure that QuickTime is present and is initialized. This is a required call before any QuickTime Java classes can be used.
  43.  
  44. When the user closes the window the program will quit, first calling QTSession.close to terminate QuickTime. It is necessary for programs to call QTSession.close if they have previously called QTSession.open in order to shut down QuickTime properly.
  45.  
  46.  
  47. =============================================================================
  48.  
  49. QuickTime and QuickTime for Java are trademarks of Apple Computer, Inc.
  50. (c) 1998 Apple Computer Inc. All rights reserved.
  51.